ComponentOne FlexPivot for WinForms
Exec(IEnumerable,Dictionary<String,Object>,CancellationToken,ProgressDelegate) Method

C1.DataEngine.4 Assembly > C1.FlexPivot Namespace > C1FlexPivotEngine Class > Exec Method : Exec(IEnumerable,Dictionary<String,Object>,CancellationToken,ProgressDelegate) Method
Data source collection containing data for aggregation.
View definition. It is obtained from a view in JSON format using System.Web.Script.Serialization.JavaScriptSerializer.Deserialize.
Enables task cancellation.
Callback function to report progress updates.
Server-side asynchronous execution of a view returning aggregated results to the caller client.
Syntax
'Declaration
 
Public Overloads Shared Function Exec( _
   ByVal dataSource As System.Collections.IEnumerable, _
   ByVal view As System.Collections.Generic.Dictionary(Of String,Object), _
   ByVal cancelToken As System.Threading.CancellationToken, _
   ByVal progress As ProgressDelegate _
) As System.Threading.Tasks.Task(Of Dictionary(Of Object(),Object()))
public static System.Threading.Tasks.Task<Dictionary<object[],object[]>> Exec( 
   System.Collections.IEnumerable dataSource,
   System.Collections.Generic.Dictionary<string,object> view,
   System.Threading.CancellationToken cancelToken,
   ProgressDelegate progress
)

Parameters

dataSource
Data source collection containing data for aggregation.
view
View definition. It is obtained from a view in JSON format using System.Web.Script.Serialization.JavaScriptSerializer.Deserialize.
cancelToken
Enables task cancellation.
progress
Callback function to report progress updates.

Return Value

View execution (aggregation) result
Remarks

This method supports multi-user thread-safe execution of views on the server. Result of such execution is intended for passing to a client for visualization on the web or elsewhere.

It can execute views over multiple dataSource collections. It maintains a pool of Workspace objects internally to enable that.

Aggregation result is a dictionary mapping keys to values. See a description of keys and values in %C1.FlexPivot.C1FlexPivotEngine.Exec(string, string, System.Collections.Generic.Dictionary<string,object>, System.Threading.CancellationToken)%

See Also

Reference

C1FlexPivotEngine Class
C1FlexPivotEngine Members
Overload List